package com.wgq.uitest;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;

import com.alibaba.android.arouter.launcher.ARouter;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class Main7Activity extends AppCompatActivity {

    @BindView(R.id.gravity)
    Button gravity;

    @BindView(R.id.linearAccel)
    Button linearAccel;

    @BindView(R.id.environment)
    Button environment;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main7);

        ButterKnife.bind(this);

        ARouter.getInstance().inject(this);
    }

    @OnClick(R.id.gravity)
    void jump(){
        ARouter.getInstance().build("/app/GravityActivity").navigation();
    }

    @OnClick(R.id.linearAccel)
    void jump2(){
        ARouter.getInstance().build("/app/LinearAccel").navigation();
    }

    @OnClick(R.id.environment)
    void jump3(){
        ARouter.getInstance().build("/app/Ambient").navigation();
    }
}